package com.belizer.demo;

import java.util.StringJoiner;

public class Demo {
    public static void main(String[] args) {
        StringJoiner stringJoiner = new StringJoiner(",");
        for(int i = 1 ; i<=1000;i++){
            stringJoiner = stringJoiner.add(i+"");
        }

        System.out.println(stringJoiner.toString());

    }
}
